package com.medicine.hbp.uitl;

import cn.jpush.android.api.JPushInterface;

import com.medicine.hbp.mob.UserInfosVo;
import com.umeng.socialize.PlatformConfig;

import android.app.Application;

public class MyApplication extends Application {
	private UserInfosVo userInfo;
	private static MyApplication application;
	private static String apkUrl;
	private String cookitString;
	private boolean isDownload;

	@Override
	public void onCreate() {
		super.onCreate();
		application = MyApplication.this;
		PlatformConfig.setWeixin("wx971b3c02475d90f2",
				"7fbb5b0bd1b8e95f8e45f470ee0f59ae");
		// 微信 appid appsecret
		PlatformConfig
				.setSinaWeibo("1270753657", "909e3b527c16e4c113a8d9e7a4a62b29",
						"http://sns.whalecloud.com");
		// 新浪微博 appkey appsecret
		PlatformConfig.setQQZone("1105823309", "aZdgABjwX0Lf56yH");
		// PlatformConfig.setQQZone("1105533005","VPZIWpL6hWtnDAgb");
		isDownload = false;
		JPushInterface.setDebugMode(true);
		JPushInterface.init(this);
	}

	public static MyApplication getMyApplication() {
		return application;
	}

	public void setCookitString(String cookitString) {
		this.cookitString = cookitString;
	}

	public String getCookitString() {
		return cookitString;
	}

	public boolean isDownload() {
		return isDownload;
	}

	public void setDownload(boolean isDownload) {
		this.isDownload = isDownload;
	}

	public static String getApkUrl() {
		return apkUrl;
	}

	public static void setApkUrl(String apkUrl) {
		MyApplication.apkUrl = apkUrl;
	}

	// -------------测试而已
	public String ip = "";

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
}
